#!/usr/bin/env python3
# coding=utf-8
'''
说明：
'''
from docx import Document
import os
import xlrd
from docx.shared import Inches
from docx.enum.table import WD_TABLE_ALIGNMENT
document = Document("demo.docx")
#document.add_picture('0002莫新发.jpg',width=Inches(1),left=3)
#document.add_picture(r"0002莫新发.jpg", width=Inches(2.25))
# p.add_picture(r"0002莫新发.jpg", width=Inches(5))
document.tables[0].cell(0, 1).paragraphs[0].paragraph_format.alignment = WD_TABLE_ALIGNMENT.CENTER
document.tables[0].cell(0, 11).paragraphs[0].add_run().add_picture("0002莫新发.jpg", width=Inches(0.96))

document.save('demo1.docx')